
<!--顶部开始-->
<?php //var_dump($nav);die;?>
<div class="top">
	<div class="container">
        <div class="top_logo left">
            <a href="__ROOT__/Index/index"><img src="__ROOT__/images/logo.png" /></a>           
        </div>
        <div class="top_nav top_page right">
           <ul class="nav">
              <li <?php if ($actionName == 'Index'){?> class="active" <?php }?>> <a href="__ROOT__/Index/index">首页</a></li>
              <li <?php if ($actionName == 'Invest'){?> class="active" <?php }?>> <a href="__ROOT__/Invest/feature">优势&特点</a></li>
              <li <?php if ($actionName == 'Know'){?> class="active" <?php }?>>  <a href="__ROOT__/Know/knowledge">新闻&知识</a></li>
              <li <?php if ($actionName == 'Asset'){?> class="active" <?php }?>> <a href="__ROOT__/Asset/whoweare">关于我们</a></li>
              <!--<li <?php if ($actionName == 'Asset'){?> class="active" <?php }?>> <a href="__ROOT__/Pc/Index/contactUs" target="_blank">提建议请点我</a></li>-->
            </ul>
            <div class="clear"></div>
        </div>

        <div class="clear"></div>
    </div>  
</div>
<!--顶部结束-->
<!--头部开始-->
<?php if ($actionName <> 'Index'){?>
<div class="head hide">
    <div class="container">
        
        <div class="nav_sub">
            <ul <?php if ($actionName == 'Index'){?> style="display:block" <?php }?>>
                <li></li>
            </ul>
            <ul <?php if ($actionName == 'Invest'){?> style="display:block" <?php }?>>
                <li <?php if ($functionName == 'feature'){?> class="active" <?php }?>><a href="__ROOT__/Invest/feature">智能投资体系</a></li>
                <li <?php if ($functionName == 'help'){?> class="active" <?php }?>><a href="__ROOT__/Invest/help">您的投资方案</a></li>
                <li <?php if ($functionName == 'adviser'){?> class="active" <?php }?>><a href="__ROOT__/Invest/adviser">您的投资顾问</a></li>
                <li <?php if ($functionName == 'faq'){?> class="active" <?php }?>><a href="__ROOT__/Invest/faq">FAQ</a></li>
            </ul>
            <ul <?php if ($actionName == 'Know'){?> style="display:block" <?php }?>>
                <li></li>
            </ul>
            <ul <?php if ($actionName == 'Know'){?> style="display:block" <?php }?>>
                <li></li>
            </ul>
        </div>
        
        <?php if ($actionName == 'Know'){?>
            <div class="input-group search ">
            	<input class="form-control search" type="text" placeholder="搜索" id="keyword" name"keyword" onkeydown='searchSubmit(event)' value='<?php echo $keyword;?>'>
                <span class="input-group-addon" onclick='searchGo()'><i class="fa fa-search" ></i></span>
            </div>
            <script type="text/javascript" language=JavaScript charset="UTF-8">
                function searchSubmit(event)
                {
                    var e = event || window.event || arguments.callee.caller.arguments[0];
                    if(e && e.keyCode==27){ // 按 Esc 
                        //要做的事情
                      }
                    if(e && e.keyCode==113){ // 按 F2 
                         //要做的事情
                       }            
                     if(e && e.keyCode==13){ // enter 键
                         searchGo();
                    }
                }
                function searchGo()
                {
                    self.location='__APP__/Know/search/keyword/' + $("#keyword")[0].value;
                }
            </script>
        <?php }?>
        <div class="clear"></div>
    </div>
</div>
<?php }?>
<!--头部结束-->